package org.duang.core;

import java.lang.reflect.Method;

import org.duang.aop.Interceptor;

public class Action {

	private String actionKey;
	private String descKey;
	private String levelKey;
	private String orderKey;
	private Class<? extends Controller> controllerClass;
	private Method method;
	private Interceptor[] interceptors;

	public Action() {

	}

	public Action(String actionKey, String descKey, String levelKey, String orderKey, Class<? extends Controller> controllerClass,
			Method method) {
		this.actionKey = actionKey;
		this.descKey = descKey;
		this.levelKey = levelKey;
		this.orderKey = orderKey;
		this.controllerClass = controllerClass;
		this.method = method;
	}

	public Action(String actionKey, String descKey, String levelKey, String orderKey, Class<? extends Controller> controllerClass,
			Method method, Interceptor[] interceptors) {
		this.actionKey = actionKey;
		this.descKey = descKey;
		this.levelKey = levelKey;
		this.orderKey = orderKey;
		this.controllerClass = controllerClass;
		this.method = method;
		this.interceptors = interceptors;
	}

	public Method getMethod() {
		return method;
	}

	public String getActionKey() {
		return actionKey;
	}

	public Class<? extends Controller> getControllerClass() {
		return controllerClass;
	}

	public Interceptor[] getInterceptors() {
		return interceptors;
	}

	public String getDescKey() {
		return descKey;
	}

	public String getLevelKey() {
		return levelKey;
	}

	public String getOrderKey() {
		return orderKey;
	}

}
